package day01;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LoginServlet extends HttpServlet{
	public LoginServlet() {
		System.out.println("servlet被创建");
	}
	private int cout;
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		System.out.println(this);
		System.out.println("当前线程:"+Thread.currentThread());
		
		System.out.println("收到客户端get请求。。");
		
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		System.out.println("收到客户端post请求。。");
		cout++;
	}
}
